home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / colorview.z / colorview
Text File  |  1998-10-30  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4. CCCCOOOOLLLLOOOORRRRVVVVIIIIEEEEWWWW((((1111))))                                                      CCCCOOOOLLLLOOOORRRRVVVVIIIIEEEEWWWW((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      colorview - display list of X11 colors and show selected color
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ccccoooolllloooorrrrvvvviiiieeeewwww [ ----bbbbrrrroooowwwwsssseeee ] [ ----ddddiiiissssppppllllaaaayyyy _d_p_y ] [ ----ggggeeeeoooommmmeeeettttrrrryyyy _g_e_o_m ]
  13.                [ ----nnnnaaaammmmeeee _n_a_m_e ] [ ----tttteeeexxxxtttt ] [ _f_i_l_e | ---- ]
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      _C_o_l_o_r_v_i_e_w is an X11 program that displays a color ``patch'' and a list of
  17.      color names from an X11 rgb database. The color for a name is displayed
  18.      by clicking the left mouse button over the color name.
  19.  
  20.      Command-line arguments are:
  21.  
  22.      ----bbbbrrrroooowwwwsssseeee   only lists the colors; the Accept and Apply buttons are not
  23.                displayed.
  24.  
  25.      ----ddddiiiissssppppllllaaaayyyy _d_p_y
  26.                specifies the X server to contact; see _X(_1).
  27.  
  28.      ----ggggeeeeoooommmmeeeettttrrrryyyy _g_e_o_m
  29.                specifies the preferred size and position of the window; see
  30.                _X(_1).
  31.  
  32.      ----nnnnaaaammmmeeee _n_a_m_e
  33.                specifies the application name under which resources are to be
  34.                obtained, rather than the default executable file name.
  35.  
  36.      ----tttteeeexxxxtttt     indicates the specified file is a text file containing color
  37.                names and/or X #rgb color specifications, with 1 name per line.
  38.  
  39.      _f_i_l_e      specifies the name the rgb database. The database must be in
  40.                _n_d_b_m(3B) format unless ----tttteeeexxxxtttt is specified.  With ----tttteeeexxxxtttt, the
  41.                database is read from standard input if _f_i_l_e is ``-''.
  42.  
  43.      Colorview has three buttons when not invoked with ----bbbbrrrroooowwwwsssseeee:
  44.  
  45.      Accept    Print the selected color name on the standard output and exit.
  46.  
  47.      Apply     Print the selected color name on the standard output.
  48.  
  49.      Cancel    Exits the program.
  50.  
  51. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  52.      To display only unique colors from the default _r_g_b database:
  53.  
  54.           showrgb | sort -u +0 -3 | awk '{print $4,$5,$6,$7}' \
  55.               | sort | colorview -text -
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCOOOOLLLLOOOORRRRVVVVIIIIEEEEWWWW((((1111))))                                                      CCCCOOOOLLLLOOOORRRRVVVVIIIIEEEEWWWW((((1111))))
  71.  
  72.  
  73.  
  74.      To display a list of colors from a file:
  75.  
  76.           colorview -text mycolors.txt
  77.  
  78.  
  79.      To display a list of colors using the X #rgb color specification:
  80.  
  81.           colorview -text - << _END_
  82.           #f0f
  83.           #7171c6
  84.           #8E3855
  85.           _END_
  86.  
  87.  
  88. FFFFIIIILLLLEEEESSSS
  89.      /usr/lib/X11/rgb         default rgb ndbm(3B) database
  90.  
  91. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  92.      rgb(1), showrgb(1), X(1)
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.